

<table  class="search_table" width="100%">
	<tr>
		<td class="search">
                    <form action="{:U($module_name.'/index')}" method="get" enctype="multipart/form-data">
                        <input type="hidden" name="g" value="{$Think.GROUP_NAME}" />
			<input type="hidden" name="m" value="{$Think.MODULE_NAME}" />
                        <input type="hidden"  name="a" value="{$Think.ACTION_NAME}" />	
                        <select name="zhuanye" id="zhuanye">
                            <option value="">--选择专业--</option>
                            <volist name="zhuanye" id="vo"><option <if condition="$keyword eq $vo['title'] ">selected</if> value="{$vo.title}">{$vo.title}</option></volist>
                        </select>

			<input type="hidden" id="menuid" name="menuid" value="{$_GET['menuid']}"/>
			<input type="submit" value="{:L('chaxun')}"  class="button" />
			<input type="reset" value="{:L('reset')}" class="button"  />
                        </form>
                     <form  name="form1" action="{:U($module_name.'/index')}" method="post" enctype="multipart/form-data">
                          <select name="zhuanye" id="zhuanyedr">
                            <option value="">--选择要导入的专业--</option>
                            <volist name="zhuanye" id="vo"><option  value="{$vo.title}">{$vo.title}</option></volist>
                        </select>
                        <input type="file" id="excel" name="excel" value="导入excel" class="button"  />
                        <input type="button" value="确定导入文件" onclick="daoru()" class="button"  />&nbsp;&nbsp;支持.xls .xlsx格式&nbsp;&nbsp;<a href="Uploads/excel/99.xls">下载excel样例</a>
			</form>
		</td>

	</tr>
</table>

<form name="myform" id="myform" action="" method="post">

<div class="table-list">
    <table width="100%" cellspacing="0">
		<thead>
            <tr>
			<th width="30"><input type="checkbox" value="" id="check_box" onclick="selectall('ids[]');"></th>
            <th width="40">{:L('listorder')}</th>
            <th width="40">ID</th>
            <th width="60">所属专业</th>
            <th width="60">职位名称</th>
            <th width="60">公司名称</th>
            <th width="40">职位月薪</th>
            <th width="60">工作地点</th>
            <th width="60">来源</th>
             <th width="60">相关链接</th>
			<th width="72">{:L('manage')}</th>
            </tr>
        </thead>
      	<tbody>
      		<volist name="list" id="vo" key="k">
      		<tr>
			<td  align="center"><input class="inputcheckbox " name="ids[]" value="{$vo['id']}" type="checkbox" ></td>
			<td align="center"><input name='listorders[{$vo.id}]' type='text' size='3' value='{$vo.listorder}' class='input-text-c'></td>
			<td align="center">{$vo['id']}</td>
                        <td align="center"  >{$vo['zhuanye']}</td>
			<td align="center">{$vo.title}</td> 
			<td align="center">{$vo.companyname}</td> 
                        <td align="center">{$vo.salary}</td> 
                        <td align="center">{$vo.workplace}</td> 
                        <td align="center">{$vo.comefrom}</td> 
                        <td align="center">{$vo.url}</td> 
      		
			<td align="center"><a href="javascript:confirm_delete('{:U($module_name.'/delete',array(id=>$vo['id']))}')">{:L('delete')}</a></td>
      		</tr>
      		</volist>
      	</tbody>
    </table>

    <div class="btn"><input type="button" class="button" name="dosubmit" value="<?php echo L('delete')?>" onclick="myform.action='{:U($module_name.'/deleteall')}';return confirm_deleteall()"/> <input  type="button" class="button" name="dosubmit" value="<?php echo L('listorder')?>" onclick="myform.action='{:U($module_name.'/listorder')}';$('#myform').submit();" /> <!-- <input  type="button" class="button" name="dosubmit" value="<?php echo L('status_ok')?>" onclick="myform.action='{:U($module_name.'/statusallok')}';$('#myform').submit();" /> --> </div>

</form></div>

<div id="pages" class="page">{$page}</div>
<script>
$("#catid").attr("value",'{$catid}');
function confirm_deleteall(){
	art.dialog.confirm("{:L('real_delete')}", function(){ $('#myform').submit();});
}

function daoru(){
    if($("#zhuanyedr").val() == ''){
        alert('请选择专业') ;
        return false ;
    }  
    if($("#excel").val()== ''){
        alert('请选择excel') ;
        return false ;
    }

    form1.action = 'index.php?g=Admin&m=Recruit&a=daoru' ;
    form1.submit() ;
}
</script>